import { request } from './request'

// 获取指定学科下的所有题库
export const getLibrariesBySubject = (subjectId, pageNum, pageSize) => {
  return request.get('/libraries/getLibrariesBySubject', { subjectId, pageNum, pageSize })
}
// 创建题库
export const createLibrary = (userId, subjectId, name, ids) => {
  return request.get('/libraries/createLibrary', { userId, subjectId, name, ids })
}
// 更新题库
export const updateLibrary = (libraryId, name, subjectId) => {
  return request.get('/libraries/updateLibrary', { libraryId, name, subjectId })
}
// 删除题库
export const deleteLibrary = (libraryId) => {
  return request.get('/libraries/deleteLibrary', { libraryId })
}
